/*
 * @Author: chenzanjing
 * @Date: 2023-07-31 08:36:17
 * @LastEditors: chenzanjing
 * @LastEditTime: 2023-07-31 09:36:56
 * @FilePath: \teaching-management-front\src\enums\httpEnum.ts
 * @Description:
 *
 * Copyright (c) 2023 by ${sylar}, All Rights Reserved.
 */
/**
 * @description：请求配置
 */
export enum ResultEnum {
  SUCCESS = 200,
  ERROR = 500,
  OVERDUE = 401,
  TIMEOUT = 60000,
  TYPE = "success",
}

/**
 * @description：请求方法
 */
export enum RequestEnum {
  GET = "GET",
  POST = "POST",
  PATCH = "PATCH",
  PUT = "PUT",
  DELETE = "DELETE",
}

/**
 * @description：常用的 contentTyp 类型
 */
export enum ContentTypeEnum {
  // json
  JSON = "application/json;charset=UTF-8",
  // text
  TEXT = "text/plain;charset=UTF-8",
  // form-data 一般配合qs
  FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8",
  // form-data 上传
  FORM_DATA = "multipart/form-data;charset=UTF-8",
}

export enum SmsSceneEnum {
  REGISTER = 1,
  LOGIN = 2,
  FINDPwd = 3,
  BindPhone = 9,
  ChangePhone = 11,
  WxBind = 13,
}
